package com.xyz.someapp;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;

import org.springframework.dao.DataAccessException;

@Aspect
public class AfterThrowingExample {

    @AfterThrowing(value="com.xyz.someapp.SystemArchitecture.dataAccessOperation()",throwing = "ex")
    public void doRecoveryActions(DataAccessException ex) {
        System.out.println("AfterThrowingExample doRecoveryActions("+ex+")");
    }

}
